import request from '@/utils/request';

// 查询全部部门数据
export const queryAllApi = () => request.get('/depts');

// 添加部门数据
export const addApi = (dept) => request.post('/depts', dept);
// 删除部门数据
export const deleteByIdApi = (id) => request.delete(`/depts?id=${id}`);
// 修改部门数据
export const updateApi = (dept) => request.put('/depts', dept);
// 根据ID查询部门数据
export const queryByIdApi = (id) => request.get(`/depts/${id}`);